<template>
  <div class="overseas">
      <div class="overseaslist" v-for="(item,index) in productBox" :key="index">
          <img :src="item.thumbnail" alt="">
          <div class="overseasinfo">
            <nuxt-link target="_blank" :to="'/insurance/' + item.id">{{item.name}}</nuxt-link>
            <p>公司：{{item.company}}</p>
            <p>年限：{{item.yearLimit}}</p>
            <p class="overseasyoushi">优势：{{item.feature}}</p>
          </div>
      </div>
     <house :newslist1="newslist1" :newslist2="newslist2"></house>
  </div>
</template>


<script>
import asyncApi from "../../../static/js/asyncApi.js";
import house from "../../../components/house";


export default {
  data() {
    return {

    };
  },
  methods: {

  },
  components:{
    house
  },
  computed:{

  },
  watch:{

  },
  mounted(){

  },
  head () {
    return {
      title: "海外保险投资平台_海外保险_香港重疾险_人寿险_医疗险_储蓄分红险_海外保险网-天沁财富",
      meta: [
         { hid:"keywords",name: 'keywords', content: '海外保险,香港重疾险,人寿险,医疗险,储蓄分红险,海外保险产品,海外保险业务,海外保险网' },
         { hid:"description",name: 'description', content: '天沁财富海外保险投资平台，为高净值群体提供全方位的海外保险配置服务，包括香港重疾险、人寿险、医疗险、储蓄分红险等海外保险。' }
      ]
    }
  },
  async asyncData() {
    let [data1,data2,data3] = await Promise.all([
      asyncApi.getInsuranceList({"page": 1,"pageSize":10,orderBy:"weigh",orderByType:"desc"}),
      asyncApi.asyncGetCategoryPost({categoryName: '投资策略' ,page: "1",pageSize: "10",orderBy:"createtime",orderByType:"desc"}),
      asyncApi.asyncGetCategoryPost({categoryName: '财经头条' ,page: "1",pageSize: "10",orderBy:"createtime",orderByType:"desc"})
    ])
    return {
      productBox: data1.data.data.list,
      newslist1: data2.data.data.list,
      newslist2: data3.data.data.list      
    };
  },
};
</script>

<style scoped>
.overseas{
  width: 1200px;
  margin: 10px auto;
  box-sizing: border-box;
}
.overseaslist{
  overflow: hidden;
  display: flex;
  background: #fff;
  transition: all 1s;
  padding: 20px 30px;
  border-bottom: 1px solid #e5e5e5;
}
.overseaslist img{
  height: 240px;
  width: 360px;
}
.overseaslist:hover{
  padding-left: 100px;
}
.overseaslist:hover a{
  color: #cd9c54;
}
.overseasinfo{
  margin-left: 78px;
}
.overseasinfo a{
  display: block;
  margin-top: 20px;
  font-size: 24px;
}
.overseasinfo p{
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}
.overseasinfo .overseasyoushi{
  margin-top: 66px;
}

</style>
